<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!-- Header -->
<div id="header">
		<div id="logo">
			<a href="index.html"><img src="<c:url value="/resources/images/logo4.png" />" alt="LOGO"></a>
		</div>
		<div id="navigation">
			<ul id="primary">
				<li class="selected">
					<a href="index.html">Home</a>
				</li>
				<li>
					<a href="new.html">New Arrivals</a>
				</li>
				<li>
					<a href="mens.html">About us</a>
				</li>
				<li>
					<a href="LoadRegister.do">Register</a>
				</li>
				<li>
			        <c:choose>
			        	<c:when test="${sessionScope.listproductscart == null}">
			        		0	
			        	</c:when>
			        	<c:otherwise>
			        		${sessionScope.listproductscart.size()}
			       		</c:otherwise>
			        </c:choose>
			        <a href="Cart.do"><img alt="" src="<c:url value="/resources/images/icon.png" />" ></a>
				</li>
			</ul>
			<ul id="secondary">
				<li>
					<sec:authorize access="isAnonymous()">
         				<a href="LoadSignin.do" class="nav">Sign In</a>
     				</sec:authorize>
     				<sec:authorize access="isAuthenticated()">
				     	Hello,
				 		<a href="UserDetail.do" class="userlogin"><sec:authentication property="principal.username"/></a>
				 		<li><a href="<c:url value="j_spring_security_logout"/>" class="nav" float="right">Sign Out</a></li>
			     	</sec:authorize>
				</li>
				
			</ul>
		</div>
	</div>
  <!-- End Header -->